'''
/*
 * @Author: wevsmy 
 * @Date: 2017-10-26 16:30:49 
 * @Last Modified by: wevsmy
 * @Last Modified time: 2017-10-26 18:51:35
 */
'''
from socket import *

serverSocket = socket(AF_INET,SOCK_STREAM)

serverSocket.bind(("",8080))
#最多支持的客户端
serverSocket.listen(5)

clientSocket,clinetInfo = serverSocket.accept()

recvData = clientSocket.recv(1024)

print("%s:%s"%(str(clinetInfo),recvData.decode("gb2312")))
clientSocket.send("你好啊！".encode("gb2312"))

clientSocket.close()
serverSocket.close()
